package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.PersonDetail;
import com.zhijian.medical.entity.vo.request.PersonDetailSearchVo;
import com.zhijian.medical.entity.vo.response.PersonDetailVo;

import java.util.List;

public interface PersonDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PersonDetail record);

    int insertSelective(PersonDetail record);

    PersonDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PersonDetail record);

    int updateByPrimaryKey(PersonDetail record);

    /**
     * 根据人员id进行修改
     *
     * @param record
     * @return
     */
    int updateByPersonId(PersonDetail record);

    int count(PersonDetailSearchVo personDetailSearchVo);

    List<PersonDetailVo> selectList(PersonDetailSearchVo personDetailSearchVo);

    PersonDetailVo selectVoById(Long id);

    /**
     * 人员id查询vo
     *
     * @param personId
     * @return
     */
    PersonDetailVo selectVoByPersonId(Long personId);
}